home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 11 / AMUG BBS in a Box Volume XI (April 1994) (MacWizards).iso / Files / Prog / B-C / CalConvert 1.1.sit / CalConvert 1.1 / CalConvert 1.1 docs next >
Encoding:
Text File  |  1994-02-09  |  4.0 KB  |  94 lines  |  [TEXT/ttxt]

  1. Alessandro Levi Montalcini
  2. C.so Re Umberto 10
  3. 10121 Torino
  4. Italy
  5.  
  6. CalConvert 1.1 documentation
  7. February 1994
  8.  
  9. • SHAREWARE - $5 - CASH ONLY
  10. ◊  This program is distributed as Shareware: if you like it or use it please honor the shareware system by sending $5 to the author at the address above. Since collecting international cheques is very expensive, please send cash only. If you MUST send a cheque, keep in mind that the banks will gobble up more than half of it.
  11. ◊  NOTE: Getting some bucks is what you write shareware for, but getting a note, a postcard or anything else is a lot better than getting nothing. I'd like to know how far this program has gone, so remember that you can do something nice even if you don't have a couple of $$$ to spare.
  12.  
  13. • GENERAL INFO
  14. ◊  CalConvert (formerly QuickConvert) is a small shareware utility that does integer arithmetic calculations and converts integer values to different bases (decimal, hexadecimal, binary, octal or any custom base between 2 and 32) or to an OSType (a sequence of four ASCII characters). The conversion may be signed or unsigned (you can always enter a signed value, it will be converted to unsigned if needed); the result may be interpreted either as a word (2 bytes) or as a long word (4 bytes). The Return and Enter keys start the conversion; Tab, shift-Tab and the four arrow keys have their usual meaning.
  15.  
  16. • CONFIGURATION
  17. ◊  Choosing the "Fields" item from the "Options" menu will bring up a configuration dialog that can be used to fully customize CalConvert. CalConvert can show up to 8 fields; each field contains either a mathematical expression, a sequence of 1 to 4 characters (OSType) or an integer number in any base from 2 to 32.
  18.  
  19. • THE ARITHMETIC CALCULATOR
  20. ◊  You may enter numerical expressions in fields labeled "Math" (things like "(12*(128-$20))<<2+2^8"); the result will be shown in all the other fields of the window when you press <return>. If the expression can't be parsed correctly, you will hear a beep and the other fields will change to zero. The next paragraphs will explain the syntax and operators you may use in your numerical expressions.
  21.  
  22. • SYNTAX NOTES FOR THE MATH FIELD
  23.  
  24.   xxx (x=0->9) is a number
  25.   $xxx (x=0->F) is an hexadecimal number
  26.   -xxx, -$xxx, $-xxx are negative numbers
  27.   all numbers are interpreted as 32-bit signed integers
  28.   '(' and ')' can be used and nested
  29.   spaces allowed between numbers and operators
  30.   no spaces allowed inside numbers or operators
  31.  
  32. • ORDER OF OPERATORS
  33.  
  34.   operators in the upper lines are calculated first;
  35.   operators in the same line are calculated sequentially:
  36.     
  37.   ^ **
  38.   * / : % << >>
  39.   & AND | OR \ XOR
  40.   + -
  41.   = == != <> < > <= >=
  42.  
  43. • ARITHMETIC OPERATORS
  44.  
  45.   '+'  add
  46.   '-'  subtract
  47.   '*'  multiply
  48.   '/'  divide
  49.   ':'  divide
  50.   '%'  remainder
  51.   '^'  power
  52.   '**' power
  53.  
  54. • LOGICAL OPERATORS (return 1 if true, 0 if false)
  55.  
  56.   '='  equal to
  57.   '==' equal to
  58.   '!=' not equal to
  59.   '<>' not equal to
  60.   '<'  less than
  61.   '>'  greater than
  62.   '<=' less or equal
  63.   '>=' greater or equal
  64.  
  65. • BITWISE OPERATORS
  66.  
  67.   '<<'  bit shift left
  68.   '>>'  bit shift right
  69.   '&'   bit and
  70.   'AND' bit and
  71.   'and' bit and
  72.   '|'   bit or
  73.   'OR'  bit or
  74.   'or'  bit or
  75.   '\'   exclusive or
  76.   'XOR' exclusive or
  77.   'xor' exclusive or
  78.  
  79. • VERSION HISTORY
  80. ◊  1.1 - Removed System 7 dependance and custom window definition
  81. ◊  1.06 - Added online help, changed some menu keys to follow Apple's guidelines and fixed window position saving for multiple monitors
  82. ◊  1.05 - Fixed an incoherent behaviour of the "Fields" dialog
  83. ◊  1.04 - Changed name, dialogs, info and docs to CalConvert
  84. ◊  1.03 - First shareware version with the arithmetic parser
  85. ◊  1.02 - First public release in send-me-a-postcard-ware
  86. ◊  1.01 - Menus added, but still looks like a quick hack
  87. ◊  1.00 - Written for my personal use only, sports a very poor interface
  88.  
  89. •  HAVE FUN! And don't forget to $$$ SEND YOUR CONTRIBUTION $$$ so that more cool utilities will see the light in the near future, at the low-low-low costs of shareware.
  90.  
  91.  
  92.                      Best Regards,
  93.                                             Alessandro Levi Montalcini
  94.